/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-03-15
 * Time: 22:26
 */
public class Book {
    public Book(){
//         _name = "名字";
//         _price = 0;
//         _autor = "作者";
//         _date = 1000;
    }
    public Book(String name, int price, String author, int date){
        _name = name;
        _price = price;
        _author = author;
        _date = date;
    }
    public void setName(String name){
        _name = name;
    }
    public void setPrice(int price){
        _price = price;
    }
    public void setAuthor(String author){
        _author = author;
    }
    public void setDate(int date){
        _date = date;
    }
    public String getName(){
        return _name;
    }
    public int getPrice(){
        return _price;
    }
    public String getAuthor(){
        return _author;
    }
    public int getDate(){
        return _date;
    }

    private String _name;
    private int _price;
    private String _author;
    private int _date;
}
